namespace TeamCityMonitor.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class AddCacheStatistics : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "CacheStatistics",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        Name = c.String(maxLength: 4000),
                        TotalExecutionTime = c.Int(nullable: false),
                        NoOfExecutions = c.Int(nullable: false),
                        MeanExectuionTime = c.Single(nullable: false),
                        MaximumExecutionTime = c.Int(nullable: false),
                        MaximumExecutionTimeDate = c.Int(nullable: false),
                        MinimumExecutionTime = c.Int(nullable: false),
                        MinimumExecutionTimeDate = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.ID);
            
        }
        
        public override void Down()
        {
            DropTable("CacheStatistics");
        }
    }
}
